@extends('layouts.ajax_master')
@section('app_js')
    <script type="text/javascript" src="/resource/js/J_main.js"></script>
    <script type="text/javascript">
        $('#teamTable').dataTable().fnDestroy();
        initDataTables();
    </script>
@stop
@section('content')
    <table id="example" class="table table-striped responsive-utilities jambo_table">
        <thead>
        <tr class="headings">
            <th>
                <input type="checkbox" class="tableflat">
            </th>
            <th>编号</th>
            <th>品牌名称</th>
            <th>材质</th>
            <th>品牌图片</th>
            <th>是否显示商品</th>
            <th class=" no-link last"><span class="nobr">操作</span>
            </th>
        </tr>
        </thead>

        <tbody>
        @foreach($brand as $k => $b)
            <tr class="even pointer img-box">
                <td class="a-center ">
                    <input type="checkbox" class="tableflat">
                </td>
                <td class=" ">{{ $b->brand_id }}</td>
                <td class="">
                    {{ $b->brand_name }}
                </td>
                <td class="">{{ $b->quality }}</td>
                <td class=" ">
                    @if(!empty($b->brand_img))
                        <img src="{{$b->brand_img}}" alt="">
                    @else
                        <img src="http://shop.mutouw.com/data/upload/shop/brand/04933125993437766_sm.png" alt="">
                    @endif
                </td>
                <td class=" ">@if($b->is_show)显示@else不显示@endif</td>
                <td class=" last">
                    <a href="/product_brand_import?cate_id={{ $b->brand_id }}">编辑</a>
                    <a href="javascript:;"  class="delete"  data-brand_id="{{ $b->brand_id }}">删除</a>
                </td>
            </tr>
        @endforeach
        </tbody>

    </table>
@stop